import Vue from 'vue'
import Router from 'vue-router'
import list from '@/components/list'
import tradeMark from '@/gmall/product/Trademark'
import category from '@/gmall/product/Category'
import categoryTrademark from '@/gmall/product/CategoryTrademark'
Vue.use(Router)

// eslint-disable-next-line no-unused-vars
let router;
// eslint-disable-next-line no-unused-vars
export default router = new Router({
    routes: [
        {
            path: '/list',
            name: 'list',
            component: list
        },
        {
            path: '/tradeMark',
            name: 'tradeMark',
            component: tradeMark
        },
        {
            path: '/category',
            name: 'category',
            component: category
        },
        {
            path: '/categoryTrademark',
            name: 'categoryTrademark',
            component: categoryTrademark
        },
        {
            path: '/attr',
            name: 'attr',
            component: ()=>import("@/gmall/product/Attr")
        },
        {
            path: '/spu',
            name: 'spu',
            component: ()=>import("@/gmall/product/Spu")
        },
        {
            path: '/sku',
            name: 'sku',
            component: ()=>import("@/gmall/product/Sku")
        },
        {
            path: '/search',
            name: 'search',
            component: ()=>import("@/gmall/search/SearchSKU")
        },
    ]
})